<div class="form-container">
<h2>User List</h2>
<div class="container-body">
<fieldset class="fieldborder">
<br />
<table class="sortable" id="sortable_example">
    <tr>
      <th>Username</th>
      <th>Status</th>
      <th>Admin</th>
      <th>Last login</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
    <?php foreach ($sf_guard_user_list as $sf_guard_user): ?>
    <tr>
    <?php
		$isactive = $sf_guard_user->getis_active();
		$isadmin = $sf_guard_user->getis_super_admin();
	?>
      <td><a href="<?php echo url_for('sfGuardUser/edit?id='.$sf_guard_user['id']) ?>"><?php echo $sf_guard_user->getusername() ?></a></td>
      <td><?php if($isactive==1){echo "Active";}
	      else echo "In Active"; ?></td>
      <td><?php if($isadmin==1){echo "Administrator";}
	      else echo "User"; ?></td>
      <td><?php echo $sf_guard_user->getlast_login() ?></td>
      <td><?php echo $sf_guard_user->getcreated_at() ?></td>
      <td><?php echo $sf_guard_user->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
</table>

  <a href="<?php echo url_for('sf_guard_user/new') ?>">New</a>
		</fieldset>
	</div>
</div>